package cn.my.framework;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Created by zhangl_lc on 2017/7/4.
 */

@SpringBootApplication(scanBasePackages = {"cn.my.framework","org.activiti.rest.diagram"},
        exclude = {SecurityAutoConfiguration.class,org.activiti.spring.boot.SecurityAutoConfiguration.class,
                org.springframework.boot.actuate.autoconfigure.ManagementWebSecurityAutoConfiguration.class})
@ServletComponentScan(basePackages = "cn.my.framework.config")
@EnableScheduling
public class MyApplication {

    /*@Bean(name="localeResolver")
    public LocaleResolver localeResolverBean() {
        return new SessionLocaleResolver();
    }*/
    public static void main(String[] args){
        SpringApplication.run(MyApplication.class,args);
    }
}
